import request from '@/utils/request'

export function getInventory(data) {
    return request({
        url: '/inventory/getInventory',
        method: 'get',
        params: data,
    })
}

export function getInventoryDetails(data) {
    return request({
        url: '/inventory/getInventoryDetails',
        method: 'get',
        params: data,
    })
}

export function getInventoryAlertList(data) {
    return request({
        url: '/inventory/getInventoryAlertList',
        method: 'get',
        params: data,
    })
}

export function getInventoryCheckByID(data) {
    return request({
        url: '/inventory/getInventoryCheckByID',
        method: 'get',
        params: data
    })
}



export function getInventoryCheckList(data) {
    return request({
        url: '/inventory/getInventoryCheckList',
        method: 'get',
        params: data,
    })
}


export function delInventoryCheckByID(data) {
    return request({
        url: '/inventory/delInventoryCheckByID',
        method: 'get',
        params: data,
    })
}


export function generateInventoryAlertOrderNumber(data) {
    return request({
        url: '/inventory/generateInventoryAlertOrderNumber',
        method: 'get',
        params: data
    })
}

export function generateInventoryIncomingGoodsOrderNumber(data) {
    return request({
        url: '/inventory/generateInventoryIncomingGoodsOrderNumber',
        method: 'get',
        params: data
    })
}

export function generateTransferOrderNumber(data) {
    return request({
        url: '/inventory/generateTransferOrderNumber',
        method: 'get',
        params: data
    })
}

export function deleteInventoryCheckByID(data) {
    return request({
        url: '/inventory/deleteInventoryCheckByID',
        method: 'post',
        data
    })
}

export function addInventoryCheck(data) {
    return request({
        url: '/inventory/addInventoryCheck',
        method: 'post',
        data
    })
}

export function generateSaleNumber(data) {
    return request({
        url: '/inventory/generateSaleNumber',
        method: 'get',
        params: data
    })
}


export function inventoryOverview(data) {
    return request({
        url: '/inventory/inventoryOverview',
        method: 'get',
        params: data,
    })
}
